﻿<%@ Page Title="" Language="C#" MasterPageFile="~/views/admin/AdminMaster.master" AutoEventWireup="true" CodeFile="sppjqk.aspx.cs" Inherits="views_admin_sppjqk" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MyContent" Runat="Server">
    <div class="col">
               <h3 class="text-center" style="color: white">商品评价</h3>
           </div>
     <style>
        .card {
          background-color: transparent; /* 设置背景色为透明 */
          color: white; /* 设置字体颜色为白色 */
        }
        .repeater {
             display: flex; /* 设置为弹性盒子布局 */
            flex-wrap: wrap; /* 设置为自动换行 */
        }
        .zoom {
          width: 400px; /* 设置div的宽度 */
          height: 300px; /* 设置div的高度 */
          border: 2px solid black; /* 设置div的边框 */
          box-shadow: 0 0 10px gray; /* 设置div的阴影 */
          background-color:transparent; /* 设置div的背景色 */
          color: white;
          transition: transform 0.5s; /* 设置动画的持续时间为0.5秒 */
          margin: 20px; /* 设置div.zoom的外边距为10像素 */
        }

        .zoom:hover {
          transform: scale(1.2); /* 设置放大的比例为1.2倍 */
          box-shadow: 0 0 20px gray; /* 设置div的阴影 */
        }
</style>
    <div class="card">
      
 
    <p>请输入关键字：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
       <asp:Button ID="Button1" runat="server" Text="搜索" Class="btn-success btn" style="background-color:black; width: 150px;margin:auto" OnClick="Button1_Click"  />
        <asp:Button ID="Button2" runat="server" Text="显示全部" Class="btn-success btn" style="background-color:black; width: 150px;margin:auto" OnClick="Button2_Click" />   
  </div>
    <div class="repeater">
    <asp:Repeater ID="rptProducts" runat="server" >
    <ItemTemplate>
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%#"~/views/admin/tz.aspx?ProductName=" + Eval("ProductName")%>' ForeColor="Transparent">
        <div class="zoom">                        
            <h3><%# Eval("ProductName") %></h3>
            <p>反馈内容：<%# Eval("ReviewContent") %></p >
              <p>建议：<%# Eval("Reviewnr") %></p >
            <p>商品分数：<%# Eval("ReviewScore") %></p >
            <p>用户：<%# Eval("ConsumerName") %></p >
           <p>体验图片：<asp:Image ID="imgProduct" runat="server" ImageUrl='<%# Eval("Reviewpicture") %>' AlternateText="Product Image" style="width: 100px; height: 100px;" /></p>  
       </div>
            </asp:HyperLink>
    </ItemTemplate>
</asp:Repeater>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="PJTY.dal.DataClasses1DataContext" EntityTypeName="" TableName="Review">
    </asp:LinqDataSource>
</asp:Content>

